home *** CD-ROM | disk | FTP | other *** search
/ PC-X 1997 October / pcx14_9710.iso / swag / delphi.swg / 0016_Bringing an icon to the front.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1995-11-22  |  324 b   |  14 lines

  1.  
  2. >How can you bring an icon to the front (set focus), without actually
  3. >restoring the mainwindow?
  4.  
  5. Michael--
  6.  
  7.   If the form/app is already minimized, this should do what you want:
  8.  
  9.   ShowWindow(Form1.Handle, SW_MINIMIZED);
  10.  
  11.   NB: I have not actually tried this, although I see no reason why it
  12. wouldn't work.
  13.  
  14.